package com.jxufe;

import java.util.Scanner;

/**
 * 将电话号码中间四位用*表示 183****6730
 */
public class PhoneNumber {
    public static void main(String[] args) {
        String phone="";
        Scanner scanner=new Scanner(System.in);
        phone = scanner.next();
        //拿出中间四位
        String substring = phone.substring(3, 7);
        String replace = phone.replace(substring, "****");//这里必须要用一个string变量去接，phone他是没有发生改变的
        System.out.println(replace);

    }
}

